find median from data stream